var ir=Object.create;var _e=Object.defineProperty;var or=Object.getOwnPropertyDescriptor;var sr=Object.getOwnPropertyNames;var ar=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty;var Wt=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var ur=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sr(t))!cr.call(r,i)&&i!==e&&_e(r,i,{get:()=>t[i],enumerable:!(n=or(t,i))||n.enumerable});return r};var lr=(r,t,e)=>(e=r!=null?ir(ar(r)):{},ur(t||!r||!r.__esModule?_e(e,"default",{value:r,enumerable:!0}):e,r));var je=Wt($t=>{"use strict";$t.byteLength=Ur;$t.toByteArray=jr;$t.fromByteArray=zr;var ht=[],ot=[],Lr=typeof Uint8Array<"u"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(vt=0,Ue=se.length;vt0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");e===-1&&(e=t);var n=e===t?0:4-e%4;return[e,n]}function Ur(r){var t=Ze(r),e=t[0],n=t[1];return(e+n)*3/4-n}function Zr(r,t,e){return(t+e)*3/4-e}function jr(r){var t,e=Ze(r),n=e[0],i=e[1],o=new Lr(Zr(r,n,i)),s=0,f=i>0?n-4:n,h;for(h=0;h>16&255,o[s++]=t>>8&255,o[s++]=t&255;return i===2&&(t=ot[r.charCodeAt(h)]<<2|ot[r.charCodeAt(h+1)]>>4,o[s++]=t&255),i===1&&(t=ot[r.charCodeAt(h)]<<10|ot[r.charCodeAt(h+1)]<<4|ot[r.charCodeAt(h+2)]>>2,o[s++]=t>>8&255,o[s++]=t&255),o}function $r(r){return ht[r>>18&63]+ht[r>>12&63]+ht[r>>6&63]+ht[r&63]}function Hr(r,t,e){for(var n,i=[],o=t;of?f:s+o));return n===1?(t=r[e-1],i.push(ht[t>>2]+ht[t<<4&63]+"==")):n===2&&(t=(r[e-2]<<8)+r[e-1],i.push(ht[t>>10]+ht[t>>4&63]+ht[t<<2&63]+"=")),i.join("")}});var $e=Wt(ae=>{ae.read=function(r,t,e,n,i){var o,s,f=i*8-n-1,h=(1<>1,p=-7,y=e?i-1:0,I=e?-1:1,D=r[t+y];for(y+=I,o=D&(1<<-p)-1,D>>=-p,p+=f;p>0;o=o*256+r[t+y],y+=I,p-=8);for(s=o&(1<<-p)-1,o>>=-p,p+=n;p>0;s=s*256+r[t+y],y+=I,p-=8);if(o===0)o=1-m;else{if(o===h)return s?NaN:(D?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-m}return(D?-1:1)*s*Math.pow(2,o-n)};ae.write=function(r,t,e,n,i,o){var s,f,h,m=o*8-i-1,p=(1<>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=n?0:o-1,U=n?1:-1,J=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(f=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+y>=1?t+=I/h:t+=I*Math.pow(2,1-y),t*h>=2&&(s++,h/=2),s+y>=p?(f=0,s=p):s+y>=1?(f=(t*h-1)*Math.pow(2,i),s=s+y):(f=t*Math.pow(2,y-1)*Math.pow(2,i),s=0));i>=8;r[e+D]=f&255,D+=U,f/=256,i-=8);for(s=s<0;r[e+D]=s&255,D+=U,s/=256,m-=8);r[e+D-U]|=J*128}});var er=Wt(Dt=>{"use strict";var ce=je(),St=$e(),He=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Dt.Buffer=l;Dt.SlowBuffer=Yr;Dt.INSPECT_MAX_BYTES=50;var Ht=2147483647;Dt.kMaxLength=Ht;l.TYPED_ARRAY_SUPPORT=Gr();!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Gr(){try{var r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function _t(r){if(r>Ht)throw new RangeError('The value "'+r+'" is invalid for option "size"');var t=new Uint8Array(r);return Object.setPrototypeOf(t,l.prototype),t}function l(r,t,e){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return he(r)}return Ve(r,t,e)}l.poolSize=8192;function Ve(r,t,e){if(typeof r=="string")return Wr(r,t);if(ArrayBuffer.isView(r))return qr(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(pt(r,ArrayBuffer)||r&&pt(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pt(r,SharedArrayBuffer)||r&&pt(r.buffer,SharedArrayBuffer)))return le(r,t,e);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return l.from(n,t,e);var i=Xr(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return l.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}l.from=function(r,t,e){return Ve(r,t,e)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function We(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Vr(r,t,e){return We(r),r<=0?_t(r):t!==void 0?typeof e=="string"?_t(r).fill(t,e):_t(r).fill(t):_t(r)}l.alloc=function(r,t,e){return Vr(r,t,e)};function he(r){return We(r),_t(r<0?0:pe(r)|0)}l.allocUnsafe=function(r){return he(r)};l.allocUnsafeSlow=function(r){return he(r)};function Wr(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var e=qe(r,t)|0,n=_t(e),i=n.write(r,t);return i!==e&&(n=n.slice(0,i)),n}function ue(r){for(var t=r.length<0?0:pe(r.length)|0,e=_t(t),n=0;n=Ht)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ht.toString(16)+" bytes");return r|0}function Yr(r){return+r!=r&&(r=0),l.alloc(+r)}l.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==l.prototype};l.compare=function(t,e){if(pt(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),pt(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,i=e.length,o=0,s=Math.min(n,i);oi.length?l.from(s).copy(i,o):Uint8Array.prototype.set.call(i,s,o);else if(l.isBuffer(s))s.copy(i,o);else throw new TypeError('"list" argument must be an Array of Buffers');o+=s.length}return i};function qe(r,t){if(l.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||pt(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var e=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return fe(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return tr(r).length;default:if(i)return n?-1:fe(r).length;t=(""+t).toLowerCase(),i=!0}}l.byteLength=qe;function Kr(r,t,e){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return cn(this,t,e);case"utf8":case"utf-8":return Ye(this,t,e);case"ascii":return sn(this,t,e);case"latin1":case"binary":return an(this,t,e);case"base64":return nn(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return un(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function xt(r,t,e){var n=r[t];r[t]=r[e],r[e]=n}l.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;ee&&(t+=" ... "),""};He&&(l.prototype[He]=l.prototype.inspect);l.prototype.compare=function(t,e,n,i,o){if(pt(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),o===void 0&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,i>>>=0,o>>>=0,this===t)return 0;for(var s=o-i,f=n-e,h=Math.min(s,f),m=this.slice(i,o),p=t.slice(e,n),y=0;y2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,de(e)&&(e=i?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(i)return-1;e=r.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof t=="string"&&(t=l.from(t,n)),l.isBuffer(t))return t.length===0?-1:ze(r,t,e,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):ze(r,[t],e,n,i);throw new TypeError("val must be string, number or Buffer")}function ze(r,t,e,n,i){var o=1,s=r.length,f=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||t.length<2)return-1;o=2,s/=2,f/=2,e/=2}function h(D,U){return o===1?D[U]:D.readUInt16BE(U*o)}var m;if(i){var p=-1;for(m=e;ms&&(e=s-f),m=e;m>=0;m--){for(var y=!0,I=0;Ii&&(n=i)):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-e;if((n===void 0||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return Jr(this,t,e,n);case"utf8":case"utf-8":return Qr(this,t,e,n);case"ascii":case"latin1":case"binary":return tn(this,t,e,n);case"base64":return en(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rn(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function nn(r,t,e){return t===0&&e===r.length?ce.fromByteArray(r):ce.fromByteArray(r.slice(t,e))}function Ye(r,t,e){e=Math.min(r.length,e);for(var n=[],i=t;i239?4:o>223?3:o>191?2:1;if(i+f<=e){var h,m,p,y;switch(f){case 1:o<128&&(s=o);break;case 2:h=r[i+1],(h&192)===128&&(y=(o&31)<<6|h&63,y>127&&(s=y));break;case 3:h=r[i+1],m=r[i+2],(h&192)===128&&(m&192)===128&&(y=(o&15)<<12|(h&63)<<6|m&63,y>2047&&(y<55296||y>57343)&&(s=y));break;case 4:h=r[i+1],m=r[i+2],p=r[i+3],(h&192)===128&&(m&192)===128&&(p&192)===128&&(y=(o&15)<<18|(h&63)<<12|(m&63)<<6|p&63,y>65535&&y<1114112&&(s=y))}}s===null?(s=65533,f=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),i+=f}return on(n)}var Ge=4096;function on(r){var t=r.length;if(t<=Ge)return String.fromCharCode.apply(String,r);for(var e="",n=0;nn)&&(e=n);for(var i="",o=t;on&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),ee)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||Q(t,e,this.length);for(var i=this[t],o=1,s=0;++s>>0,e=e>>>0,n||Q(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i};l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t=t>>>0,e||Q(t,1,this.length),this[t]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||Q(t,2,this.length),this[t]|this[t+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||Q(t,2,this.length),this[t]<<8|this[t+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};l.prototype.readIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||Q(t,e,this.length);for(var i=this[t],o=1,s=0;++s=o&&(i-=Math.pow(2,8*e)),i};l.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||Q(t,e,this.length);for(var i=e,o=1,s=this[t+--i];i>0&&(o*=256);)s+=this[t+--i]*o;return o*=128,s>=o&&(s-=Math.pow(2,8*e)),s};l.prototype.readInt8=function(t,e){return t=t>>>0,e||Q(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};l.prototype.readInt16LE=function(t,e){t=t>>>0,e||Q(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(t,e){t=t>>>0,e||Q(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};l.prototype.readInt32BE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};l.prototype.readFloatLE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),St.read(this,t,!0,23,4)};l.prototype.readFloatBE=function(t,e){return t=t>>>0,e||Q(t,4,this.length),St.read(this,t,!1,23,4)};l.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||Q(t,8,this.length),St.read(this,t,!0,52,8)};l.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||Q(t,8,this.length),St.read(this,t,!1,52,8)};function rt(r,t,e,n,i,o){if(!l.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tr.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;rt(this,t,e,n,o,0)}var s=1,f=0;for(this[e]=t&255;++f>>0,n=n>>>0,!i){var o=Math.pow(2,8*n)-1;rt(this,t,e,n,o,0)}var s=n-1,f=1;for(this[e+s]=t&255;--s>=0&&(f*=256);)this[e+s]=t/f&255;return e+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,1,255,0),this[e]=t&255,e+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){var o=Math.pow(2,8*n-1);rt(this,t,e,n,o-1,-o)}var s=0,f=1,h=0;for(this[e]=t&255;++s>0)-h&255;return e+n};l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e=e>>>0,!i){var o=Math.pow(2,8*n-1);rt(this,t,e,n,o-1,-o)}var s=n-1,f=1,h=0;for(this[e+s]=t&255;--s>=0&&(f*=256);)t<0&&h===0&&this[e+s+1]!==0&&(h=1),this[e+s]=(t/f>>0)-h&255;return e+n};l.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1};l.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2};l.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2};l.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4};l.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||rt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function Ke(r,t,e,n,i,o){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Je(r,t,e,n,i){return t=+t,e=e>>>0,i||Ke(r,t,e,4,34028234663852886e22,-34028234663852886e22),St.write(r,t,e,n,23,4),e+4}l.prototype.writeFloatLE=function(t,e,n){return Je(this,t,e,!0,n)};l.prototype.writeFloatBE=function(t,e,n){return Je(this,t,e,!1,n)};function Qe(r,t,e,n,i){return t=+t,e=e>>>0,i||Ke(r,t,e,8,17976931348623157e292,-17976931348623157e292),St.write(r,t,e,n,52,8),e+8}l.prototype.writeDoubleLE=function(t,e,n){return Qe(this,t,e,!0,n)};l.prototype.writeDoubleBE=function(t,e,n){return Qe(this,t,e,!1,n)};l.prototype.copy=function(t,e,n,i){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=e;s55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&o.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&o.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;o.push(e)}else if(e<2048){if((t-=2)<0)break;o.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;o.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return o}function hn(r){for(var t=[],e=0;e>8,i=e%256,o.push(i),o.push(n);return o}function tr(r){return ce.toByteArray(fn(r))}function zt(r,t,e,n){for(var i=0;i=t.length||i>=r.length);++i)t[i+e]=r[i];return i}function pt(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function de(r){return r!==r}var dn=function(){for(var r="0123456789abcdef",t=new Array(256),e=0;e<16;++e)for(var n=e*16,i=0;i<16;++i)t[n+i]=r[e]+r[i];return t}()});var fr=":";function hr(r,t){for(let e=1,n=1;e{class F{static{this.__symbol__=nt}static assertZonePatched(){if(ft.Promise!==B.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let a=F.current;for(;a.parent;)a=a.parent;return a}static get current(){return A.zone}static get currentTask(){return N}static __load_patch(a,c,v=!1){if(B.hasOwnProperty(a)){let R=ft[nt("forceDuplicateZoneCheck")]===!0;if(!v&&R)throw Error("Already loaded patch: "+a)}else if(!ft["__Zone_disable_"+a]){let R="Zone:"+a;t(R),B[a]=c(ft,F,C),e(R,R)}}get parent(){return this._parent}get name(){return this._name}constructor(a,c){this._parent=a,this._name=c?c.name||"unnamed":"",this._properties=c&&c.properties||{},this._zoneDelegate=new o(this,this._parent&&this._parent._zoneDelegate,c)}get(a){let c=this.getZoneWith(a);if(c)return c._properties[a]}getZoneWith(a){let c=this;for(;c;){if(c._properties.hasOwnProperty(a))return c;c=c._parent}return null}fork(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)}wrap(a,c){if(typeof a!="function")throw new Error("Expecting function got: "+a);let v=this._zoneDelegate.intercept(this,a,c),R=this;return function(){return R.runGuarded(v,this,arguments,c)}}run(a,c,v,R){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,a,c,v,R)}finally{A=A.parent}}runGuarded(a,c=null,v,R){A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,a,c,v,R)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{A=A.parent}}runTask(a,c,v){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||tt).name+"; Execution: "+this.name+")");let R=a,{type:q,data:{isPeriodic:L=!1,isRefreshable:wt=!1}={}}=a;if(a.state===X&&(q===V||q===w))return;let dt=a.state!=Z;dt&&R._transitionTo(Z,T);let Et=N;N=R,A={parent:A,zone:this};try{q==w&&a.data&&!L&&!wt&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,R,c,v)}catch(st){if(this._zoneDelegate.handleError(this,st))throw st}}finally{let st=a.state;if(st!==X&&st!==Y)if(q==V||L||wt&&st===x)dt&&R._transitionTo(T,Z,x);else{let g=R._zoneDelegates;this._updateTaskCount(R,-1),dt&&R._transitionTo(X,Z,X),wt&&(R._zoneDelegates=g)}A=A.parent,N=Et}}scheduleTask(a){if(a.zone&&a.zone!==this){let v=this;for(;v;){if(v===a.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${a.zone.name}`);v=v.parent}}a._transitionTo(x,X);let c=[];a._zoneDelegates=c,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(v){throw a._transitionTo(Y,x,X),this._zoneDelegate.handleError(this,v),v}return a._zoneDelegates===c&&this._updateTaskCount(a,1),a.state==x&&a._transitionTo(T,x),a}scheduleMicroTask(a,c,v,R){return this.scheduleTask(new s(H,a,c,v,R,void 0))}scheduleMacroTask(a,c,v,R,q){return this.scheduleTask(new s(w,a,c,v,R,q))}scheduleEventTask(a,c,v,R,q){return this.scheduleTask(new s(V,a,c,v,R,q))}cancelTask(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||tt).name+"; Execution: "+this.name+")");if(!(a.state!==T&&a.state!==Z)){a._transitionTo($,T,Z);try{this._zoneDelegate.cancelTask(this,a)}catch(c){throw a._transitionTo(Y,$),this._zoneDelegate.handleError(this,c),c}return this._updateTaskCount(a,-1),a._transitionTo(X,$),a.runCount=-1,a}}_updateTaskCount(a,c){let v=a._zoneDelegates;c==-1&&(a._zoneDelegates=null);for(let R=0;RF.hasTask(a,c),onScheduleTask:(F,_,a,c)=>F.scheduleTask(a,c),onInvokeTask:(F,_,a,c,v,R)=>F.invokeTask(a,c,v,R),onCancelTask:(F,_,a,c)=>F.cancelTask(a,c)};class o{get zone(){return this._zone}constructor(_,a,c){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=a,this._forkZS=c&&(c&&c.onFork?c:a._forkZS),this._forkDlgt=c&&(c.onFork?a:a._forkDlgt),this._forkCurrZone=c&&(c.onFork?this._zone:a._forkCurrZone),this._interceptZS=c&&(c.onIntercept?c:a._interceptZS),this._interceptDlgt=c&&(c.onIntercept?a:a._interceptDlgt),this._interceptCurrZone=c&&(c.onIntercept?this._zone:a._interceptCurrZone),this._invokeZS=c&&(c.onInvoke?c:a._invokeZS),this._invokeDlgt=c&&(c.onInvoke?a:a._invokeDlgt),this._invokeCurrZone=c&&(c.onInvoke?this._zone:a._invokeCurrZone),this._handleErrorZS=c&&(c.onHandleError?c:a._handleErrorZS),this._handleErrorDlgt=c&&(c.onHandleError?a:a._handleErrorDlgt),this._handleErrorCurrZone=c&&(c.onHandleError?this._zone:a._handleErrorCurrZone),this._scheduleTaskZS=c&&(c.onScheduleTask?c:a._scheduleTaskZS),this._scheduleTaskDlgt=c&&(c.onScheduleTask?a:a._scheduleTaskDlgt),this._scheduleTaskCurrZone=c&&(c.onScheduleTask?this._zone:a._scheduleTaskCurrZone),this._invokeTaskZS=c&&(c.onInvokeTask?c:a._invokeTaskZS),this._invokeTaskDlgt=c&&(c.onInvokeTask?a:a._invokeTaskDlgt),this._invokeTaskCurrZone=c&&(c.onInvokeTask?this._zone:a._invokeTaskCurrZone),this._cancelTaskZS=c&&(c.onCancelTask?c:a._cancelTaskZS),this._cancelTaskDlgt=c&&(c.onCancelTask?a:a._cancelTaskDlgt),this._cancelTaskCurrZone=c&&(c.onCancelTask?this._zone:a._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let v=c&&c.onHasTask,R=a&&a._hasTaskZS;(v||R)&&(this._hasTaskZS=v?c:i,this._hasTaskDlgt=a,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,c.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=a,this._scheduleTaskCurrZone=this._zone),c.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=a,this._invokeTaskCurrZone=this._zone),c.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=a,this._cancelTaskCurrZone=this._zone))}fork(_,a){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,a):new n(_,a)}intercept(_,a,c){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,a,c):a}invoke(_,a,c,v,R){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,a,c,v,R):a.apply(c,v)}handleError(_,a){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,a):!0}scheduleTask(_,a){let c=a;if(this._scheduleTaskZS)this._hasTaskZS&&c._zoneDelegates.push(this._hasTaskDlgtOwner),c=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,a),c||(c=a);else if(a.scheduleFn)a.scheduleFn(a);else if(a.type==H)U(a);else throw new Error("Task is missing scheduleFn.");return c}invokeTask(_,a,c,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,a,c,v):a.callback.apply(c,v)}cancelTask(_,a){let c;if(this._cancelTaskZS)c=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,a);else{if(!a.cancelFn)throw Error("Task is not cancelable");c=a.cancelFn(a)}return c}hasTask(_,a){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,a)}catch(c){this.handleError(_,c)}}_updateTaskCount(_,a){let c=this._taskCounts,v=c[_],R=c[_]=v+a;if(R<0)throw new Error("More tasks executed then were scheduled.");if(v==0||R==0){let q={microTask:c.microTask>0,macroTask:c.macroTask>0,eventTask:c.eventTask>0,change:_};this.hasTask(this._zone,q)}}}class s{constructor(_,a,c,v,R,q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=a,this.data=v,this.scheduleFn=R,this.cancelFn=q,!c)throw new Error("callback is not defined");this.callback=c;let L=this;_===V&&v&&v.useG?this.invoke=s.invokeTask:this.invoke=function(){return s.invokeTask.call(ft,L,this,arguments)}}static invokeTask(_,a,c){_||(_=this),et++;try{return _.runCount++,_.zone.runTask(_,a,c)}finally{et==1&&J(),et--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,x)}_transitionTo(_,a,c){if(this._state===a||this._state===c)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${a}'${c?" or '"+c+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let f=nt("setTimeout"),h=nt("Promise"),m=nt("then"),p=[],y=!1,I;function D(F){if(I||ft[h]&&(I=ft[h].resolve(0)),I){let _=I[m];_||(_=I.then),_.call(I,F)}else ft[f](F,0)}function U(F){et===0&&p.length===0&&D(J),F&&p.push(F)}function J(){if(!y){for(y=!0;p.length;){let F=p;p=[];for(let _=0;_A,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!n[nt("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:D},A={parent:null,zone:new n(null,null)},N=null,et=0;function W(){}return e("Zone","Zone"),n}function Er(){let r=globalThis,t=r[nt("forceDuplicateZoneCheck")]===!0;if(r.Zone&&(t||typeof r.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return r.Zone??=dr(),r.Zone}var Ft=Object.getOwnPropertyDescriptor,Jt=Object.defineProperty,Qt=Object.getPrototypeOf,yr=Object.create,gr=Array.prototype.slice,te="addEventListener",ee="removeEventListener",qt=nt(te),Xt=nt(ee),yt="true",gt="false",Pt=nt("");function re(r,t){return Zone.current.wrap(r,t)}function ne(r,t,e,n,i){return Zone.current.scheduleMacroTask(r,t,e,n,i)}var j=nt,Zt=typeof window<"u",Ct=Zt?window:void 0,K=Zt&&Ct||globalThis,mr="removeAttribute";function ie(r,t){for(let e=r.length-1;e>=0;e--)typeof r[e]=="function"&&(r[e]=re(r[e],t+"_"+e));return r}function Tr(r,t){let e=r.constructor.name;for(let n=0;n{let h=function(){return f.apply(this,ie(arguments,e+"."+i))};return Tt(h,f),h})(o)}}}function Re(r){return r?r.writable===!1?!1:!(typeof r.get=="function"&&typeof r.set>"u"):!0}var Ce=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,jt=!("nw"in K)&&typeof K.process<"u"&&K.process.toString()==="[object process]",oe=!jt&&!Ce&&!!(Zt&&Ct.HTMLElement),Se=typeof K.process<"u"&&K.process.toString()==="[object process]"&&!Ce&&!!(Zt&&Ct.HTMLElement),Ut={},_r=j("enable_beforeunload"),ke=function(r){if(r=r||K.event,!r)return;let t=Ut[r.type];t||(t=Ut[r.type]=j("ON_PROPERTY"+r.type));let e=this||r.target||K,n=e[t],i;if(oe&&e===Ct&&r.type==="error"){let o=r;i=n&&n.call(this,o.message,o.filename,o.lineno,o.colno,o.error),i===!0&&r.preventDefault()}else i=n&&n.apply(this,arguments),r.type==="beforeunload"&&K[_r]&&typeof i=="string"?r.returnValue=i:i!=null&&!i&&r.preventDefault();return i};function ve(r,t,e){let n=Ft(r,t);if(!n&&e&&Ft(e,t)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let i=j("on"+t+"patched");if(r.hasOwnProperty(i)&&r[i])return;delete n.writable,delete n.value;let o=n.get,s=n.set,f=t.slice(2),h=Ut[f];h||(h=Ut[f]=j("ON_PROPERTY"+f)),n.set=function(m){let p=this;if(!p&&r===K&&(p=K),!p)return;typeof p[h]=="function"&&p.removeEventListener(f,ke),s&&s.call(p,null),p[h]=m,typeof m=="function"&&p.addEventListener(f,ke,!1)},n.get=function(){let m=this;if(!m&&r===K&&(m=K),!m)return null;let p=m[h];if(p)return p;if(o){let y=o.call(this);if(y)return n.set.call(this,y),typeof m[mr]=="function"&&m.removeAttribute(t),y}return null},Jt(r,t,n),r[i]=!0}function De(r,t,e){if(t)for(let n=0;nfunction(s,f){let h=e(s,f);return h.cbIdx>=0&&typeof f[h.cbIdx]=="function"?ne(h.name,f[h.cbIdx],h,i):o.apply(s,f)})}function Tt(r,t){r[j("OriginalDelegate")]=t}var xe=!1,Yt=!1;function kr(){try{let r=Ct.navigator.userAgent;if(r.indexOf("MSIE ")!==-1||r.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vr(){if(xe)return Yt;xe=!0;try{let r=Ct.navigator.userAgent;(r.indexOf("MSIE ")!==-1||r.indexOf("Trident/")!==-1||r.indexOf("Edge/")!==-1)&&(Yt=!0)}catch{}return Yt}function be(r){return typeof r=="function"}function Ie(r){return typeof r=="number"}var Rt=!1;if(typeof window<"u")try{let r=Object.defineProperty({},"passive",{get:function(){Rt=!0}});window.addEventListener("test",r,r),window.removeEventListener("test",r,r)}catch{Rt=!1}var xr={useG:!0},it={},Ne={},Be=new RegExp("^"+Pt+"(\\w+)(true|false)$"),Fe=j("propagationStopped");function Pe(r,t){let e=(t?t(r):r)+gt,n=(t?t(r):r)+yt,i=Pt+e,o=Pt+n;it[r]={},it[r][gt]=i,it[r][yt]=o}function br(r,t,e,n){let i=n&&n.add||te,o=n&&n.rm||ee,s=n&&n.listeners||"eventListeners",f=n&&n.rmAll||"removeAllListeners",h=j(i),m="."+i+":",p="prependListener",y="."+p+":",I=function(x,T,Z){if(x.isRemoved)return;let $=x.callback;typeof $=="object"&&$.handleEvent&&(x.callback=w=>$.handleEvent(w),x.originalDelegate=$);let Y;try{x.invoke(x,T,[Z])}catch(w){Y=w}let H=x.options;if(H&&typeof H=="object"&&H.once){let w=x.originalDelegate?x.originalDelegate:x.callback;T[o].call(T,Z.type,w,H)}return Y};function D(x,T,Z){if(T=T||r.event,!T)return;let $=x||T.target||r,Y=$[it[T.type][Z?yt:gt]];if(Y){let H=[];if(Y.length===1){let w=I(Y[0],$,T);w&&H.push(w)}else{let w=Y.slice();for(let V=0;V{throw V})}}}let U=function(x){return D(this,x,!1)},J=function(x){return D(this,x,!0)};function tt(x,T){if(!x)return!1;let Z=!0;T&&T.useG!==void 0&&(Z=T.useG);let $=T&&T.vh,Y=!0;T&&T.chkDup!==void 0&&(Y=T.chkDup);let H=!1;T&&T.rt!==void 0&&(H=T.rt);let w=x;for(;w&&!w.hasOwnProperty(i);)w=Qt(w);if(!w&&x[i]&&(w=x),!w||w[h])return!1;let V=T&&T.eventNameToString,B={},C=w[h]=w[i],A=w[j(o)]=w[o],N=w[j(s)]=w[s],et=w[j(f)]=w[f],W;T&&T.prepend&&(W=w[j(T.prepend)]=w[T.prepend]);function F(u,E){return!Rt&&typeof u=="object"&&u?!!u.capture:!Rt||!E?u:typeof u=="boolean"?{capture:u,passive:!0}:u?typeof u=="object"&&u.passive!==!1?{...u,passive:!0}:u:{passive:!0}}let _=function(u){if(!B.isExisting)return C.call(B.target,B.eventName,B.capture?J:U,B.options)},a=function(u){if(!u.isRemoved){let E=it[u.eventName],b;E&&(b=E[u.capture?yt:gt]);let S=b&&u.target[b];if(S){for(let k=0;kat.zone.cancelTask(at);u.call(bt,"abort",lt,{once:!0}),at.removeAbortListener=()=>bt.removeEventListener("abort",lt)}if(B.target=null,Nt&&(Nt.taskData=null),Ee&&(B.options.once=!0),!Rt&&typeof at.options=="boolean"||(at.options=ut),at.target=M,at.capture=Gt,at.eventName=O,G&&(at.originalDelegate=z),P?It.unshift(at):It.push(at),k)return M}};return w[i]=d(C,m,q,L,H),W&&(w[p]=d(W,y,v,L,H,!0)),w[o]=function(){let u=this||r,E=arguments[0];T&&T.transferEventName&&(E=T.transferEventName(E));let b=arguments[2],S=b?typeof b=="boolean"?!0:b.capture:!1,k=arguments[1];if(!k)return A.apply(this,arguments);if($&&!$(A,k,u,arguments))return;let P=it[E],M;P&&(M=P[S?yt:gt]);let O=M&&u[M];if(O)for(let z=0;zfunction(i,o){i[Fe]=!0,n&&n.apply(i,o)})}function Ar(r,t){t.patchMethod(r,"queueMicrotask",e=>function(n,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var Lt=j("zoneTask");function At(r,t,e,n){let i=null,o=null;t+=n,e+=n;let s={};function f(m){let p=m.data;p.args[0]=function(){return m.invoke.apply(this,arguments)};let y=i.apply(r,p.args);return Ie(y)?p.handleId=y:(p.handle=y,p.isRefreshable=be(y.refresh)),m}function h(m){let{handle:p,handleId:y}=m.data;return o.call(r,p??y)}i=mt(r,t,m=>function(p,y){if(be(y[0])){let I={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?y[1]||0:void 0,args:y},D=y[0];y[0]=function(){try{return D.apply(this,arguments)}finally{let{handle:Z,handleId:$,isPeriodic:Y,isRefreshable:H}=I;!Y&&!H&&($?delete s[$]:Z&&(Z[Lt]=null))}};let U=ne(t,y[0],I,f,h);if(!U)return U;let{handleId:J,handle:tt,isRefreshable:X,isPeriodic:x}=U.data;if(J)s[J]=U;else if(tt&&(tt[Lt]=U,X&&!x)){let T=tt.refresh;tt.refresh=function(){let{zone:Z,state:$}=U;return $==="notScheduled"?(U._state="scheduled",Z._updateTaskCount(U,1)):$==="running"&&(U._state="scheduling"),T.call(this)}}return tt??J??U}else return m.apply(r,y)}),o=mt(r,e,m=>function(p,y){let I=y[0],D;Ie(I)?(D=s[I],delete s[I]):(D=I?.[Lt],D?I[Lt]=null:D=I),D?.type?D.cancelFn&&D.zone.cancelTask(D):m.apply(r,y)})}function Rr(r,t){let{isBrowser:e,isMix:n}=t.getGlobalObjects();if(!e&&!n||!r.customElements||!("customElements"in r))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];t.patchCallbacks(t,r.customElements,"customElements","define",i)}function Cr(r,t){if(Zone[t.symbol("patchEventTarget")])return;let{eventNames:e,zoneSymbolEventNames:n,TRUE_STR:i,FALSE_STR:o,ZONE_SYMBOL_PREFIX:s}=t.getGlobalObjects();for(let h=0;ho.target===r);if(!n||n.length===0)return t;let i=n[0].ignoreProperties;return t.filter(o=>i.indexOf(o)===-1)}function Ae(r,t,e,n){if(!r)return;let i=Oe(r,t,e);De(r,i,n)}function Kt(r){return Object.getOwnPropertyNames(r).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}function Dr(r,t){if(jt&&!Se||Zone[r.symbol("patchEvents")])return;let e=t.__Zone_ignore_on_properties,n=[];if(oe){let i=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let o=kr()?[{target:i,ignoreProperties:["error"]}]:[];Ae(i,Kt(i),e&&e.concat(o),Qt(i))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{let e=t[r.__symbol__("legacyPatch")];e&&e()}),r.__load_patch("timers",t=>{let e="set",n="clear";At(t,e,n,"Timeout"),At(t,e,n,"Interval"),At(t,e,n,"Immediate")}),r.__load_patch("requestAnimationFrame",t=>{At(t,"request","cancel","AnimationFrame"),At(t,"mozRequest","mozCancel","AnimationFrame"),At(t,"webkitRequest","webkitCancel","AnimationFrame")}),r.__load_patch("blocking",(t,e)=>{let n=["alert","prompt","confirm"];for(let i=0;ifunction(m,p){return e.current.run(s,t,p,h)})}}),r.__load_patch("EventTarget",(t,e,n)=>{Sr(t,n),Cr(t,n);let i=t.XMLHttpRequestEventTarget;i&&i.prototype&&n.patchEventTarget(t,n,[i.prototype])}),r.__load_patch("MutationObserver",(t,e,n)=>{Bt("MutationObserver"),Bt("WebKitMutationObserver")}),r.__load_patch("IntersectionObserver",(t,e,n)=>{Bt("IntersectionObserver")}),r.__load_patch("FileReader",(t,e,n)=>{Bt("FileReader")}),r.__load_patch("on_property",(t,e,n)=>{Dr(n,t)}),r.__load_patch("customElements",(t,e,n)=>{Rr(t,n)}),r.__load_patch("XHR",(t,e)=>{m(t);let n=j("xhrTask"),i=j("xhrSync"),o=j("xhrListener"),s=j("xhrScheduled"),f=j("xhrURL"),h=j("xhrErrorBeforeScheduled");function m(p){let y=p.XMLHttpRequest;if(!y)return;let I=y.prototype;function D(C){return C[n]}let U=I[qt],J=I[Xt];if(!U){let C=p.XMLHttpRequestEventTarget;if(C){let A=C.prototype;U=A[qt],J=A[Xt]}}let tt="readystatechange",X="scheduled";function x(C){let A=C.data,N=A.target;N[s]=!1,N[h]=!1;let et=N[o];U||(U=N[qt],J=N[Xt]),et&&J.call(N,tt,et);let W=N[o]=()=>{if(N.readyState===N.DONE)if(!A.aborted&&N[s]&&C.state===X){let _=N[e.__symbol__("loadfalse")];if(N.status!==0&&_&&_.length>0){let a=C.invoke;C.invoke=function(){let c=N[e.__symbol__("loadfalse")];for(let v=0;vfunction(C,A){return C[i]=A[2]==!1,C[f]=A[1],$.apply(C,A)}),Y="XMLHttpRequest.send",H=j("fetchTaskAborting"),w=j("fetchTaskScheduling"),V=mt(I,"send",()=>function(C,A){if(e.current[w]===!0||C[i])return V.apply(C,A);{let N={target:C,url:C[f],isPeriodic:!1,args:A,aborted:!1},et=ne(Y,T,N,x,Z);C&&C[h]===!0&&!N.aborted&&et.state===X&&et.invoke()}}),B=mt(I,"abort",()=>function(C,A){let N=D(C);if(N&&typeof N.type=="string"){if(N.cancelFn==null||N.data&&N.data.aborted)return;N.zone.cancelTask(N)}else if(e.current[H]===!0)return B.apply(C,A)})}}),r.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&Tr(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),r.__load_patch("PromiseRejectionEvent",(t,e)=>{function n(i){return function(o){Me(t,i).forEach(f=>{let h=t.PromiseRejectionEvent;if(h){let m=new h(i,{promise:o.promise,reason:o.rejection});f.invoke(m)}})}}t.PromiseRejectionEvent&&(e[j("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),e[j("rejectionHandledHandler")]=n("rejectionhandled"))}),r.__load_patch("queueMicrotask",(t,e,n)=>{Ar(t,n)})}function Br(r){r.__load_patch("ZoneAwarePromise",(t,e,n)=>{let i=Object.getOwnPropertyDescriptor,o=Object.defineProperty;function s(g){if(g&&g.toString===Object.prototype.toString){let d=g.constructor&&g.constructor.name;return(d||"")+": "+JSON.stringify(g)}return g?g.toString():Object.prototype.toString.call(g)}let f=n.symbol,h=[],m=t[f("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,p=f("Promise"),y=f("then"),I="__creationTrace__";n.onUnhandledError=g=>{if(n.showUncaughtError()){let d=g&&g.rejection;d?console.error("Unhandled Promise rejection:",d instanceof Error?d.message:d,"; Zone:",g.zone.name,"; Task:",g.task&&g.task.source,"; Value:",d,d instanceof Error?d.stack:void 0):console.error(g)}},n.microtaskDrainDone=()=>{for(;h.length;){let g=h.shift();try{g.zone.runGuarded(()=>{throw g.throwOriginal?g.rejection:g})}catch(d){U(d)}}};let D=f("unhandledPromiseRejectionHandler");function U(g){n.onUnhandledError(g);try{let d=e[D];typeof d=="function"&&d.call(this,g)}catch{}}function J(g){return g&&g.then}function tt(g){return g}function X(g){return L.reject(g)}let x=f("state"),T=f("value"),Z=f("finally"),$=f("parentPromiseValue"),Y=f("parentPromiseState"),H="Promise.then",w=null,V=!0,B=!1,C=0;function A(g,d){return u=>{try{F(g,d,u)}catch(E){F(g,!1,E)}}}let N=function(){let g=!1;return function(u){return function(){g||(g=!0,u.apply(null,arguments))}}},et="Promise resolved with itself",W=f("currentTaskTrace");function F(g,d,u){let E=N();if(g===u)throw new TypeError(et);if(g[x]===w){let b=null;try{(typeof u=="object"||typeof u=="function")&&(b=u&&u.then)}catch(S){return E(()=>{F(g,!1,S)})(),g}if(d!==B&&u instanceof L&&u.hasOwnProperty(x)&&u.hasOwnProperty(T)&&u[x]!==w)a(u),F(g,u[x],u[T]);else if(d!==B&&typeof b=="function")try{b.call(u,E(A(g,d)),E(A(g,!1)))}catch(S){E(()=>{F(g,!1,S)})()}else{g[x]=d;let S=g[T];if(g[T]=u,g[Z]===Z&&d===V&&(g[x]=g[Y],g[T]=g[$]),d===B&&u instanceof Error){let k=e.currentTask&&e.currentTask.data&&e.currentTask.data[I];k&&o(u,W,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k{try{let P=g[T],M=!!u&&Z===u[Z];M&&(u[$]=P,u[Y]=S);let O=d.run(k,void 0,M&&k!==X&&k!==tt?[]:[P]);F(u,!0,O)}catch(P){F(u,!1,P)}},u)}let v="function ZoneAwarePromise() { [native code] }",R=function(){},q=t.AggregateError;class L{static toString(){return v}static resolve(d){return d instanceof L?d:F(new this(null),V,d)}static reject(d){return F(new this(null),B,d)}static withResolvers(){let d={};return d.promise=new L((u,E)=>{d.resolve=u,d.reject=E}),d}static any(d){if(!d||typeof d[Symbol.iterator]!="function")return Promise.reject(new q([],"All promises were rejected"));let u=[],E=0;try{for(let k of d)E++,u.push(L.resolve(k))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(E===0)return Promise.reject(new q([],"All promises were rejected"));let b=!1,S=[];return new L((k,P)=>{for(let M=0;M{b||(b=!0,k(O))},O=>{S.push(O),E--,E===0&&(b=!0,P(new q(S,"All promises were rejected")))})})}static race(d){let u,E,b=new this((P,M)=>{u=P,E=M});function S(P){u(P)}function k(P){E(P)}for(let P of d)J(P)||(P=this.resolve(P)),P.then(S,k);return b}static all(d){return L.allWithCallback(d)}static allSettled(d){return(this&&this.prototype instanceof L?this:L).allWithCallback(d,{thenCallback:E=>({status:"fulfilled",value:E}),errorCallback:E=>({status:"rejected",reason:E})})}static allWithCallback(d,u){let E,b,S=new this((O,z)=>{E=O,b=z}),k=2,P=0,M=[];for(let O of d){J(O)||(O=this.resolve(O));let z=P;try{O.then(G=>{M[z]=u?u.thenCallback(G):G,k--,k===0&&E(M)},G=>{u?(M[z]=u.errorCallback(G),k--,k===0&&E(M)):b(G)})}catch(G){b(G)}k++,P++}return k-=2,k===0&&E(M),S}constructor(d){let u=this;if(!(u instanceof L))throw new Error("Must be an instanceof Promise.");u[x]=w,u[T]=[];try{let E=N();d&&d(E(A(u,V)),E(A(u,B)))}catch(E){F(u,!1,E)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return L}then(d,u){let E=this.constructor?.[Symbol.species];(!E||typeof E!="function")&&(E=this.constructor||L);let b=new E(R),S=e.current;return this[x]==w?this[T].push(S,b,d,u):c(this,S,b,d,u),b}catch(d){return this.then(null,d)}finally(d){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=L);let E=new u(R);E[Z]=Z;let b=e.current;return this[x]==w?this[T].push(b,E,d,d):c(this,b,E,d,d),E}}L.resolve=L.resolve,L.reject=L.reject,L.race=L.race,L.all=L.all;let wt=t[p]=t.Promise;t.Promise=L;let dt=f("thenPatched");function Et(g){let d=g.prototype,u=i(d,"then");if(u&&(u.writable===!1||!u.configurable))return;let E=d.then;d[y]=E,g.prototype.then=function(b,S){return new L((P,M)=>{E.call(this,P,M)}).then(b,S)},g[dt]=!0}n.patchThen=Et;function st(g){return function(d,u){let E=g.apply(d,u);if(E instanceof L)return E;let b=E.constructor;return b[dt]||Et(b),E}}return wt&&(Et(wt),mt(t,"fetch",g=>st(g))),Promise[e.__symbol__("uncaughtPromiseErrors")]=h,L})}function Fr(r){r.__load_patch("toString",t=>{let e=Function.prototype.toString,n=j("OriginalDelegate"),i=j("Promise"),o=j("Error"),s=function(){if(typeof this=="function"){let p=this[n];if(p)return typeof p=="function"?e.call(p):Object.prototype.toString.call(p);if(this===Promise){let y=t[i];if(y)return e.call(y)}if(this===Error){let y=t[o];if(y)return e.call(y)}}return e.call(this)};s[n]=e,Function.prototype.toString=s;let f=Object.prototype.toString,h="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?h:f.call(this)}})}function Pr(r,t,e,n,i){let o=Zone.__symbol__(n);if(t[o])return;let s=t[o]=t[n];t[n]=function(f,h,m){return h&&h.prototype&&i.forEach(function(p){let y=`${e}.${n}::`+p,I=h.prototype;try{if(I.hasOwnProperty(p)){let D=r.ObjectGetOwnPropertyDescriptor(I,p);D&&D.value?(D.value=r.wrapWithCurrentZone(D.value,y),r._redefineProperty(h.prototype,p,D)):I[p]&&(I[p]=r.wrapWithCurrentZone(I[p],y))}else I[p]&&(I[p]=r.wrapWithCurrentZone(I[p],y))}catch{}}),s.call(t,f,h,m)},r.attachOriginToPatched(t[n],s)}function Mr(r){r.__load_patch("util",(t,e,n)=>{let i=Kt(t);n.patchOnProperties=De,n.patchMethod=mt,n.bindArguments=ie,n.patchMacroTask=wr;let o=e.__symbol__("BLACK_LISTED_EVENTS"),s=e.__symbol__("UNPATCHED_EVENTS");t[s]&&(t[o]=t[s]),t[o]&&(e[o]=e[s]=t[o]),n.patchEventPrototype=Ir,n.patchEventTarget=br,n.isIEOrEdge=vr,n.ObjectDefineProperty=Jt,n.ObjectGetOwnPropertyDescriptor=Ft,n.ObjectCreate=yr,n.ArraySlice=gr,n.patchClass=Bt,n.wrapWithCurrentZone=re,n.filterProperties=Oe,n.attachOriginToPatched=Tt,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Pr,n.getGlobalObjects=()=>({globalSources:Ne,zoneSymbolEventNames:it,eventNames:i,isBrowser:oe,isMix:Se,isNode:jt,TRUE_STR:yt,FALSE_STR:gt,ZONE_SYMBOL_PREFIX:Pt,ADD_EVENT_LISTENER_STR:te,REMOVE_EVENT_LISTENER_STR:ee})})}function Or(r){Br(r),Fr(r),Mr(r)}var Le=Er();Or(Le);Nr(Le);var rr=lr(er());window.Buffer=rr.Buffer;